<?php
$this->breadcrumbs=array(
	'Videos'=>array('index'),
	$model->pkVideo,
);

$this->menu=array(
	array('label'=>'List Video', 'url'=>array('index')),
	array('label'=>'Subir Video', 'url'=>array('create')),
	//array('label'=>'Update Video', 'url'=>array('update', 'id'=>$model->pkVideo)),
	array('label'=>'Delete Video', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->pkVideo),'confirm'=>'quiere borrar este video?')),
	//array('label'=>'Manage Video', 'url'=>array('admin')),
);
?>

<h1>View Video #<?php echo $model->pkVideo; ?></h1>

<?php 
$video;

$this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'pkVideo',
		'direccion_video',
		
	),
	
)); 
$video = CHtml::encode($model->direccion_video);
$titulo = CHtml::encode($model->pkVideo);
$this->widget('ext.projekktor.EProjekktor', array(
    'id'=>$titulo,
    'isYoutubeVideo'=>true,
    'options'=>array('controls'=>true),
        'htmlOptions'=>array(
        'src'=>$video,
        'title'=>$titulo,
        ),
));

?>

